<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>Title</title>
</head>
<body>
您的注册信息如下：

<%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    String ages = request.getParameter("ages");
%>
<p>用户名:<%=username%>
<p>密码:<%=password%>
<p>年龄:<%=ages%>
</p>
</body>
</html>
